@extends('layouts.appDomain')

@section('style')
    <style>
        iframe{
            width: 100%;
            height: 300px;
        }
    </style>
@endsection

@section('content')


    <div class="jumbotron jumbotron-fluid"
         @if (isset($server->ext['bgUrl']))
         style="color:white; background: url('{{$server->ext['bgUrl']}}') no-repeat top center; background-size: cover;"
        @endif
    >
        <div class="container ">
            <h1 class="display-4">{{ $server->name }}</h1>

            @if($server->qq_group)
                <p class="lead">
                    QQ群：{{$server->qq_group}}
                </p>
            @endif

            @if($server->qq_server)
                <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin={{$server->qq_server}}&amp;site=qq&amp;menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{{$server->qq_server}}:42" alt="点击这里给我发消息" title="点击这里给我发消息"></a>
            @endif

            <div class="text-right mt-3">
                <a class="btn btn-success btn-sm" href="{{ url($server->getLauncherUrl()) }}" target="_blank">登录器下载</a>
                @if(!session('player'))
                <a class="btn btn-primary btn-sm" href="{{ url('register') }}">注册</a>
                    <a class="btn btn-primary btn-sm" href="{{ url('login') }}">登录</a>
                    <br>
                <small class="text-secondary"> <i class="fas fa-info-circle"></i> 注册的账号密码，即为登录游戏的账号密码</small>
                @endif
            </div>

        </div>
    </div>

    <div class="container mb-5">
        <div class="row">


        <div class="col-sm-6 col-md-6">
            <h3>介绍</h3>
            <div>
                <p class="lead text-danger">{!! str_replace("\n","<br>",str_replace("\r\n","<br>",$server->info))??'一切尽在游戏中' !!}</p>
            </div>
        </div>

        @if(sizeof($server->videos)>0)
            <div class="col-sm-6 col-md-6">
                <h3>视频</h3>
                <div class="text-center">
                    {!! $server->videos[0]->url !!}
                </div>
                <div class="text-right">
                    <a href="{{url('/video')}}">更多视频</a>
                </div>
            </div>
        @endif

        <div class="col-sm-6 col-md-6">
            <h3>相关下载</h3>
            <div>
                <ul>
                    <li><a href="https://www.123pan.com/s/OJqRVv-V0xH.html" target="_blank">魔兽世界3.35客户端下载</a></li>
{{--                    <li><a href="{{ url('/Wow.exe') }}" target="_blank">12340版EXE文件，下载覆盖</a></li>--}}
                    <li><a href="{{ url('/魔兽世界3.35大脚插件.rar') }}" target="_blank">魔兽世界3.35大脚插件</a></li>
                </ul>
            </div>
        </div>
        </div>
    </div>


@endsection
